package com.pet.server.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 宠物主表
 *
 * @author Centaurea
 */
@ApiModel(value = "com-pet-server-domain-entity-PetOwner")
@Data
@NoArgsConstructor
@TableName(value = "t_pet_owner")
public class PetOwner implements Serializable {
  private static final long serialVersionUID = -5723577731882316377L;
  public static final String COL_ID = "id";
  public static final String COL_PET_OWNER_NAME = "pet_owner_name";
  public static final String COL_PET_OWNER_NICKNAME = "pet_owner_nickname";
  public static final String COL_PET_OWNER_PHONE = "pet_owner_phone";
  public static final String COL_PET_OWNER_AVATAR = "pet_owner_avatar";
  public static final String COL_PET_OWNER_ADDRESS = "pet_owner_address";
  public static final String COL_SHOP_ID = "shop_id";

  /** 宠物主ID */
  @TableId(value = "id", type = IdType.AUTO)
  @ApiModelProperty(value = "宠物主ID")
  private Integer id;

  /** 宠物主姓名 */
  @TableField(value = "pet_owner_name")
  @ApiModelProperty(value = "宠物主姓名")
  private String petOwnerName;

  /** 昵称 */
  @TableField(value = "pet_owner_nickname")
  @ApiModelProperty(value = "昵称")
  private String petOwnerNickname;

  /** 联系电话 */
  @TableField(value = "pet_owner_phone")
  @ApiModelProperty(value = "联系电话")
  private String petOwnerPhone;

  /** 头像 */
  @TableField(value = "pet_owner_avatar")
  @ApiModelProperty(value = "头像")
  private String petOwnerAvatar;

  /** 联系地址 */
  @TableField(value = "pet_owner_address")
  @ApiModelProperty(value = "联系地址")
  private String petOwnerAddress;

  /** 门店id */
  @TableField(value = "shop_id")
  @ApiModelProperty(value = "门店id")
  private Integer shopId;
}
